<?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method='xml' indent='yes' />
<xsl:template match='similarartists'>

<rdf:RDF xmlns="http://www.polytech.unice.fr/semanticfm#" 
		xmlns:rdf ="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
		xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
	<Artist>
		<xsl:attribute name='rdf:about'>
			<xsl:value-of select="@artist"/>
		</xsl:attribute>
		<name><xsl:value-of select="@artist"/></name>
		<pic><xsl:value-of select="@picture"/></pic>
		
		<xsl:for-each select='artist'>
			<similar>
				<SimilarArtist>
					<artist>
						<Artist>
							<xsl:attribute name='rdf:about'>
								<xsl:value-of select="name"/>
							</xsl:attribute>
						</Artist>
					</artist>
					<match><xsl:value-of select="match"/></match>
				</SimilarArtist>
			</similar>
		</xsl:for-each>
	</Artist>
</rdf:RDF>

</xsl:template>
</xsl:stylesheet>